package com.unknowpupil.design.cor;

import java.util.Date;

/**
 * @Description: <p>
 *
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/28 12:06
 * @Classname: Client
 * @Version: 1.0
 */
public class Client {
    public static void main(String[] args) {
        Leader a = new Director("小明");
        Leader b = new GeneralManager("小红");
        Leader c = new Manager("小花");
        //组织责任链关系  可以写在配置里，用反射 我不会。
        a.setNextLeader(b);
        b.setNextLeader(c);


        LeaveRequest leaveRequest = new LeaveRequest("小路",30,"相亲");

        a.handleRequest(leaveRequest);

    }
}
